/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.erp.ejb;

import br.com.fgv.erp.modelo.Atributo;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author diego
 */
@Stateless
public class AtrbutoEJBLocal extends EJBFacade<Atributo> implements AtributoEjb {

   
    /*
     * @Stateless(mappedName="ejb/UserBean")
 

     */
    @PersistenceContext(unitName = "br.com.fgv.erp_ERPImovel-ejb_ejb_1.0-BETAPU")
    private EntityManager em;
    
    private static final String ordenacao =  "nome";
    private static final String ordem = "asc" ;
    
  
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public AtrbutoEJBLocal() {
        super(Atributo.class, ordenacao, ordem);
    }
   
}
